import { Component, EventEmitter, Input, Output } from '@angular/core';
import { NzGridModule } from 'ng-zorro-antd/grid';
import { NzCardModule } from 'ng-zorro-antd/card';
import { NzFlexModule } from 'ng-zorro-antd/flex';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { Child } from './course';

@Component({
  selector: 'app-card',
  standalone: true,
  imports: [NzGridModule, NzCardModule, NzFlexModule, NzIconModule],
  templateUrl: './card.component.html',
  styleUrl: './card.component.less',
})
export class CardComponent {
  @Input() courseObj!: Child;
  @Output() messageEvent = new EventEmitter<string>();

  sendMessage() {
    this.messageEvent.emit('发送消息');
  }
}
